package edu.stu.cs.software.family.shoppingcart.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.stu.cs.software.family.base.web.spring.controller.GenericController;
import edu.stu.cs.software.family.shoppingcart.domian.ShoppingCart;
import edu.stu.cs.software.family.shoppingcart.service.ShoppingCartManager;

@Controller
@RequestMapping("/shoppingCart")
public class ShoppingCartController extends GenericController<ShoppingCart, Long, ShoppingCartManager> {
	ShoppingCartManager shoppingcartmanager;
	@RequestMapping("/index")
	public String index() {
		return "ShoppingCart/index";
	}
	@Autowired
	public void setShoppingCartManager(ShoppingCartManager shoppingcartmanager) {
		this.shoppingcartmanager = shoppingcartmanager;
		this.manager = this.shoppingcartmanager;
	}
	
}